import javax.swing.JOptionPane;


public class HATA
{
	static final int ADRES_BULUNAMADI = 1;
	
	
	public HATA(int n)
	{
		this.kod(n);
	}
	
	private void kod(int n)
	{
		switch(n)
		{
		case HATA.ADRES_BULUNAMADI:
			JOptionPane.showMessageDialog(AnaPencere.getFrames()[0],
					"Sunucuyla baglanti kurulamadi",
					"HATA!",
					JOptionPane.ERROR_MESSAGE);
			break;

		default:
			JOptionPane.showMessageDialog(AnaPencere.getFrames()[0],
					"Tanimlanmamis hata",
					"HATA!",
					JOptionPane.ERROR_MESSAGE);
			n = 99;
			break;
		}
		
		System.exit(n);
	}
}
